package edu.Test;

import java.util.Scanner;

public class test19 {
    public static void main(String[] args) {
        Scanner sc =new Scanner(System.in);
        System.out.println("请输入一个任意整数:");
        long i=sc.nextLong();
        int num=0;
        int sum=1;
        while ((i = i / 10) != 0) {
            sum++;
        }
        System.out.println("这个整数有"+sum+"位");
    }
}
